cmake_minimum_required(VERSION 2.8)

project(power)

aux_source_directory(. MAIN)

# 将子目录添加, 会执行子目录的CMakeLists.txt
add_subdirectory(math)

add_executable(power ${MAIN})

# 将可执行文件与powerlib进行链接
target_link_libraries(power powerlib)